// @ts-ignore
import {request} from 'umi';
import {modulesUrl} from "@/assets/constant/modulesUrl";
import {getApiPrefix} from "@/assets/utils/utils";

/**
 * 获取单个map形式字典列表
 * @param moduleUrl 模块url
 * @param params
 */
export async function map(params?: any) {
  return request(getApiPrefix(modulesUrl.sysDict) + "/map", {
    params,
  });
}
